package com.qf.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * User: key
 * ClassName:DiscussPost
 * Date: 2023/6/3
 * Time: 8:45
 * description:
 */
@Data
@TableName("discuss_post")
public class DiscussPost {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("user_id")
    private Integer userId;
    private String title;
    private String content;
    private Integer type;
    private Integer status;
    @TableField("create_time")
    private Date createTime;
    @TableField("comment_count")
    private Integer commentCount;
    private Double score;
    @TableField(exist = false) // 告诉MP我的数据库表中没有这一列
    private String createTimeStr;
    @TableField(exist = false)
    private Long likeCount;
}
